package com.hgw.Demo02_adapterPattern.classAdapter;

/**
 * Data time:2021/12/14 09:35
 * StudentID:2019112118
 * Author:hgw
 * Description: 适配器类，继承TFCardImpl 实现 SDCard
 */
public class SDAdapterTF extends TFCardImpl implements SDCard{
    @Override
    public String readSD() {
        System.out.println("adapter read TFCard");
        return readTF();
    }

    @Override
    public void writeSD(String msg) {
        System.out.println("adapter write TFCard");
        writTF(msg);
    }
}
